package com.omar.labs.tamtamy.XML;

import com.omar.labs.tamtamy.NetworkDetails;
import com.omar.labs.tamtamy.utils.XMLUtility;

public class XMLNetworkDetails extends NetworkDetails {
	
	public XMLNetworkDetails(String xml) {
		super();
		this.id = XMLUtility.getNodeValue(xml, "id");
		this.network = XMLUtility.getNodeValue(xml, "name");
		this.creationDate = XMLUtility.getNodeValueWithAttribute(xml, "creationDate", "class=\"sql-timestamp\"");
		this.userCounter = XMLUtility.getNodeValue(xml, "userCounter");
		this.countentCounter = XMLUtility.getNodeValue(xml, "contentCounter");
		this.description =  XMLUtility.getNodeValue(xml, "description");
	}

}
